package com.wsx.ones.boot.test.hello.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wsx.ones.boot.test.hello.domain.City;


@Mapper
public interface CityMapper {

	@Select("select * from city where id = #{id}")
	public City selectCityById(int id);

	@Insert("insert into city (id,name,state,country) values (#{id},#{name},#{state},#{country})")
	public int save(City city);
	
	
}
